package com.moi.Proxy;

public class GameProxy extends Game {
    private Game gameLover=null;
    private String myName;
    public GameProxy(String gameProxyName,String gameLoverName){
        this.myName=gameProxyName;
        gameLover=new GameLover(gameLoverName);
    }
    @Override
    public void playGame() {
        this.gameLover.playGame();
        System.out.println(this.myName+"  代练 在帮 "+((GameLover)this.gameLover).getName());
    }
}
